<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			const isActivated = uni.getStorageSync('isActivated')
			if (!isActivated) {
				uni.reLaunch({
					url: '/pages/activation/index'
				})
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/* 全局样式 */
	page {
		font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', sans-serif;
		background-color: #F8FAFC;
		color: #1E293B;
		font-size: 28rpx;
		line-height: 1.5;
	}

	/* 基础组件样式 */
	.button {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 20rpx 32rpx;
		font-size: 28rpx;
		font-weight: 500;
		border-radius: 12rpx;
		transition: all 0.3s;
	}
	button:after {
    content: none;
	}
	button::after {
		border: none;
	}
	.button-primary {
		background-color: #2563EB;
		color: #FFFFFF;
	}

	.button-primary:active {
		background-color: #1D4ED8;
	}

	.button-outline {
		border: 2rpx solid #E2E8F0;
		background-color: #FFFFFF;
		color: #475569;
	}

	.button-outline:active {
		background-color: #F1F5F9;
	}

	/* 卡片组件 */
	.card {
		background-color: #FFFFFF;
		border-radius: 20rpx;
		padding: 32rpx;
		margin-bottom: 24rpx;
		box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	}

	/* 布局容器 */
	.container {
		min-height: 100vh;
		background-color: #F8FAFC;
		padding-top: var(--status-bar-height);
	}

	.header {
		background-color: #FFFFFF;
		padding: 32rpx;
	}

	.header-title {
		font-size: 36rpx;
		font-weight: bold;
		color: #1E293B;
	}

	.content {
		padding: 32rpx;
	}

	/* 列表样式 */
	.list {
		display: flex;
		flex-direction: column;
		gap: 24rpx;
	}

	.list-item {
		background-color: #FFFFFF;
		padding: 24rpx;
		border-radius: 12rpx;
		display: flex;
		align-items: center;
	}

	/* 弹窗样式 */
	.modal {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1000;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.modal-mask {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.6);
		backdrop-filter: blur(4px);
	}

	.modal-content {
		position: relative;
		z-index: 1;
		width: 85%;
		max-width: 600rpx;
		background-color: #FFFFFF;
		border-radius: 20rpx;
		padding: 32rpx;
	}

	/* 图标 */
	.icon {
		font-family: "iconfont";
		font-size: 32rpx;
		font-style: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	/* 底部安全区域 */
	.safe-area-bottom {
		padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom);
	}


</style>
